home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 2⁄2⁄90 / 0614-MacApp filing system-Feb90 < prev    next >
Encoding:
Text File  |  1990-02-02  |  2.1 KB  |  45 lines  |  [TEXT/GEOL]

  1. Item    9055650                         2-Feb-90        06:03PST
  2.  
  3. From:   D4453                           Technically Soft, Chris Lang,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. cc:     X0591                           MacApp Dev Assoc, Howard Katz,IVC
  8.  
  9. Sub:    MacApp filing system?
  10.  
  11. To: Anyone who knows how MacApp's "File routines" work
  12. From:  Chris Lang, Technically Soft, PRT @D4453
  13.  
  14. My application needs to open an index the first time the user opens an old
  15. document or creates a new one.  I'm storing the information about the index
  16. file (fields of the WDPBrec and an AppFile) in the resource fork of the
  17. Application itself.  I can't figure out why I keep getting OSerr -35 or better
  18. yet, how can I open this index file without presenting the SFDialog????
  19.  
  20. I have had some limited success.  If I place the index within the ".Debug
  21. Files" of my Application AND start the application from MPW it opens the index
  22. correctly but only if I start it from MPW and not the Finder.
  23.  
  24. Question two.  When the user selects 'New' he is asked to supply the
  25. initialization information via a modal dialog.  After selecting OK some of this
  26. information needs to be written to the index file.  MacApp correctly updates
  27. the "document Index" but when I try to write it to disk it OSFails with error
  28. 21, "Driver reference number doesn't match unit table".  But how can this
  29. be????  I just opened the stupid file.  I've followed all the examples and call
  30. the inherited version first before writing my information to disk.  The
  31. Inherited version of DoWrite doesn't generate the error.  It comes from:
  32.     FailOSErr(FSWrite(@refNum,count,size));
  33. Where refnum was the same used in the inherited version, count=SizeOf(Integer),
  34. and size is the number of elements in a list (size is an integer);
  35.  
  36. I could certinaly use some advice.  I've spent all week on this with no
  37. success.  I was hoping to spend the weeked making some headway on the
  38. application itself without trying to debug MacApp so if you have any
  39. suggestions please let me know as soon as possible.
  40.  
  41. Thanks Chris Lang
  42.     Technically Soft, PRT, D4453
  43.  
  44.  
  45.